package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SEntityKillerInfo extends Object implements IMessageBase
    {
        public var entityId:SEntityId;
        public var camp:int;
        public var level:int;
        public var name:String;
        public const _type:int = 55;
        public static var _regist:SEntityKillerInfo = new SEntityKillerInfo(true);

        public function SEntityKillerInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SEntityKillerInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            param1.writeInt(this.camp);
            param1.writeInt(this.level);
            param1.writeString(this.name);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.camp = param1.readInt();
            this.level = param1.readInt();
            this.name = param1.readString();
            
        }

    }
}
